package com.hex.ds.hdtp.core.inf.data.contrast.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hex.ds.hdtp.core.inf.data.contrast.po.CrossDbContrastListPo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Package: com.hex.ds.hdtp.core.inf.data.contrast.mapper
 * @ClassName ICrossDbContrastListMapper
 * @Description: 跨库对比清单-数据映射接口
 * @Author: wz.li
 * @Date 2023/7/24 18:23
 * @Version v2.0.2
 **/
@Repository
public interface ICrossDbContrastListMapper extends BaseMapper<CrossDbContrastListPo> {

    /*
     * @Method: queryListByPage <br>
     * @Param: [toMyBatisPlusPage, crossDbContrastListPo] <br>
     * @Return: com.baomidou.mybatisplus.core.metadata.IPage<com.hex.ds.hdtp.core.inf.data.contrast.po.CrossDbContrastListPo> <br>
     * @Description：分页查询<br>
     * @Author： wz.li<br>
     * @Date： 2023/7/24 19:31 <br>
     * @Version： V2.0.2<br>
     */
    IPage<CrossDbContrastListPo> queryListByPage(IPage<CrossDbContrastListPo> toMyBatisPlusPage,
                                                 @Param("po") CrossDbContrastListPo crossDbContrastListPo);

    /*
     * @Method: queryList <br>
     * @Param: [crossDbContrastListPo] <br>
     * @Return: java.util.List<com.hex.ds.hdtp.core.inf.data.contrast.po.CrossDbContrastListPo> <br>
     * @Description：不分页查询<br>
     * @Author： wz.li<br>
     * @Date： 2023/7/24 19:31 <br>
     * @Version： V2.0.2<br>
     */
    List<CrossDbContrastListPo> queryList(@Param("po") CrossDbContrastListPo crossDbContrastListPo);

    /**
     * @Method deleteByTaskPkId
     * @Param
     * @param taskPkId
     * @Return void
     * @Description 根据任务主键删除
     * @Author Wang zhihao
     * @Date 2023/8/7 17:13
     * @Version V1.0
     */
    void deleteByTaskPkId(String taskPkId);

    /**
     * @Method modifyStatus
     * @Param pkId
     * @Param status
     * @Return java.lang.Integer
     * @Description 更新状态
     * @Author gj.xu
     * @Date 2024/1/5 22:08
     * @Version V2.0
     */
    Integer modifyStatus(String pkId, String status);
}
